<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib uri="/oscache" prefix="oscache"%>
<%@ page import="com.vworks.framework.utils.ApplicationContextContainer" %>
<%@ page import="com.vworks.cms.channel.service.CMSChannelService" %>
<%@ page import="com.vworks.cms.channel.dao.model.*" %>
<%@ page import="java.util.List" %>
<%
ChannelListConditionEntity clc=null;
String[] showTop=new String[]{"产品","研究"};
String[] topnow=(request.getAttribute("topnow")==null || "".equals(request.getAttribute("topnow")))?new String[]{"0"}:String.valueOf(request.getAttribute("topnow")).split("\\|");
int top1=Integer.parseInt( topnow[0]);
int top2=Integer.parseInt((topnow.length>1)?topnow[1]:"0");

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><sitemesh:write property='title'/></title>
<link href="/static/vworks/css/index.css" rel="stylesheet" type="text/css" media="screen"/>
<script type="text/javascript" src="/static/vworks/js/jquery.js"></script>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ffe4f03fc777013f2753d6f701dfa34fa' type='text/javascript'%3E%3C/script%3E"));


function enterPress(e) {
    if (e.keyCode == 13) {
        alert("ssss");
    }
}

$(function($) {
	$('.navigation a').each(function(i){
		
		$(this).mouseover(function(){
			$('.navigation a').each(function(j){
				if(i!=j)
					$('#localDiv'+j).fadeOut(1);
			});		
			$('#localDiv'+i).css('margin-left',parseInt(120)+(parseInt(80)*(i+1)));
			if(i>0){
				$('#localDiv'+i).show('slow','swing');
			}
		});
	});
	
	<%if(top1>1){%>
		$('#localDiv<%=top1-1%>').css('margin-left',parseInt(120)+(parseInt(80)*(<%=top1%>)));
		$('#localDiv<%=top1-1%>').show('slow','swing');
		$('#localDiv<%=top1-1%> a:eq(<%=top2-1%>)').addClass("dangqian");	
	<%}%>
	
});

function seaPtCode() {
	var ptcode = document.getElementById("ptcode").value;
	
	if (ptcode == "") {
		alert("请输入您要查找的产品代码!");
		return false;
	}
	
	$.ajax({
		type:"get",
		cache :false,
		url:"<%=request.getContextPath()%>/html/product/queryProduct/" + ptcode + "/",
		success:function(msg){
			if (msg == "1") {
				location.href= "<%=request.getContextPath()%>/html/publicDetails/" + ptcode + ".html";
				return false;
			} else if (msg == "2") {
				location.href="<%=request.getContextPath()%>/html/trustsummary/" + ptcode + ".html";
				return false;
			} else if (msg == "3") {
				location.href="<%=request.getContextPath()%>/html/cfpprofile/" + ptcode + ".html";
				return false;
			} else {
				alert(msg);
				return false;
			}
			
		}
	});
}
</script>
<sitemesh:write property='head'/>
</head>
<body>
<div class="top">
	<h1 class="logo"><a href="/"><img src="/static/vworks/images/logo.jpg" width="159" height="44" /></a></h1>
	<div class="navigation">
			|<a href="/"  <%=(top1==1?"class=\"dangqian\"":"") %>>首页</a>| <a href="<%=request.getContextPath() %>/html/mutualfund.html"  <%=(top1==2?"class=\"dangqian\"":"") %>>产品</a> |
			<a href="<%=request.getContextPath() %>/html/research.html" <%=(top1==3?"class=\"dangqian\"":"") %>>研究</a>|<a
				href="<%=request.getContentType()%>/html/news/1/10/list.html">资讯</a>|<!--  | <a href="#">服务</a>|--> <a href="<%=request.getContextPath()%>/html/aboutus/1/index.html" <%=(top1==5?"class=\"dangqian\"":"") %>>关于我们</a>|
	</div>	
 	<div class="top_dl"><span>搜索<input name="ptcode" id="ptcode" type="text" class="top_inp" maxlength=""/><img src="/static/vworks/images/serach_btn.jpg" style="cursor: pointer;"  onkeypress="enterPress(event);"  onclick="seaPtCode();"/></span></div>
 	<div class="clear"></div>
</div>
	<div class="about_daohang"  >
		<div class="daohang2">
		<%int i=1;
		for(String path:showTop){
			clc=new ChannelListConditionEntity();
			clc.setC_path("/vworks/CN/ChannelHome/凯石工场/"+path+"/");
			clc.setC_level(6);
			CMSChannelService cis=(CMSChannelService)ApplicationContextContainer.getApplicationContext().getBean("cmsChannelService");
			List<ChannelListEntity>  list=cis.channelList(clc);%>
			<div id="localDiv<%=i++ %>" style="margin-left:200px;display: none;">
			<%for(ChannelListEntity ce:list) {%>
					
				<a href="<%=(ce.getA_f_is_out_link()==1 && ce.getA_f_out_link()!=null)?(request.getContextPath()+ce.getA_f_out_link()):"#" %>"  >
				<%if (!"券商／私募".equals(ce.getA_name())) {%>
					<%=ce.getA_name() %>
					<%} else { %>
						<%="私募／券商"%>
					<%} %>
				</a>
					
		<%	} %></div>	
		<%}%>
			 
		</div>
	</div>
<sitemesh:write property='body'></sitemesh:write>
	<div class="bottom_bg">
		<div class="bottom_ne">
			<ul>
				<li>公司地址：<br/>上海黄浦区延安东路一号凯石大厦 4楼</li>
				<li>联系电话：<br />4000178000
				</li>
				<li>邮箱：<br />wx@vstone.com.cn
				</li>
				<li style="margin-right: 0px;">企业QQ：<br />4000178000
				</li>
			</ul>
			<div class="wangzhanditu" style="width: 420px;">
				 <span class="tu"><img
					src="/static/vworks/images/bottom_img.gif" width="28" height="24" /></span><a href="http://www.miibeian.gov.cn/publish/query/indexFirst.action" target="tlblank">沪ICP备13037831</a>&nbsp;&nbsp;Copyright © 2013-2014 vworks.com.cn 版权所有
					
			</div>
		</div>
	</div>

</body>
</html>